package com.qtrue.exer;

/**
 * @Package: com.qtrue.exer
 * @ClassName: ArrayDemo01
 * @Author: xiaoBao
 * @CreateTime: 2022-03-04 9:42
 * @Description: 一维数组练习题01：手机号码
 */
public class ArrayDemo01 {
    public static void main(String[] args) {
        int[] arr = new int[]{5,7,3,9,6,2,8,1};
        int[] index = new int[]{7,0,1,5,2,6,6,3,4,7,2};

        String tel = "";
        for (int i=0;i<index.length;i++){
            tel += arr[index[i]];
        }

        System.out.println("联系电话："+tel);
    }
}
